<template>
  <table border="0">
    <tr>
        <td v-for="items in tableData">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in stausa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData1">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in stausaa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData2">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in stausaaa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData3">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in stausaaaa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData4">
          {{items.name}}
        </td>
    </tr>  
    <tr>
        <td v-for="items in stausaaaaa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
  </table>
</template>
<script>
export default {
  props: [
    'stausa',
    "stausaa",
    "stausaaa",
    "stausaaaa",
    "stausaaaaa",
  ],
  data () {
    return {
        tableData:[
          {
            name:"采集超时",
          },
          {
            name:"超速报警",
          },
          {
            name:"低速报警",
          },
          {
            name:"低油压报警",
          },
          {
            name:"高水温报警",
          },
          {
            name:"高油温报警",
          },
          {
            name:"高缸温报警",
          },
          {
            name:"高箱温报警",
          }
        ],
        tableData1:[
          {
            name:"低燃油位报警",
          },
          {
            name:"低机油位报警",
          },
          {
            name:"即时分闸报警",
          },
          {
            name:"即时停车报警",
          },
          {
            name:"D+开路报警",
          },
          {
            name:"转速信号消失报警",
          },
          {
            name:"油压传感器开路报警",
          },
          {
            name:"水温传感器开路报警",
          }
        ],
        tableData2:[
          {
            name:"油温传感器开路报警",
          },
          {
            name:"缸温传感器开路报警",
          },
          {
            name:"箱温传感器开路报警",
          },
          {
            name:"油位传感器开路报警",
          },
          {
            name:"超频报警",
          },
          {
            name:"低频报警",
          },
          {
            name:"过压报警",
          },
          {
            name:"低压报警",
          }
        ],

        tableData3:[
          {
            name:"过流报警",
          },
          {
            name:"电流不平衡报警",
          },
          {
            name:"过功率报警",
          },
          {
            name:"发电缺相报警",
          },
          {
            name:"发电逆相序报警",
          },
          {
            name:"发电合闸失败报警",
          },
          {
            name:"发电分闸失败报警",
          },
          {
            name:"市电合闸失败报警",
          }
        ],
        tableData4:[
          {
            name:"市电分闸失败报警",
          },
          {
            name:"ECU报警报警",
          },
          {
            name:"ECU通信失败报警",
          },
          {
            name:"低水位开关报警",
          },
          {
            name:"百叶窗打开状态报警",
          },
          {
            name:"急停报警",
          },
          {
            name:"起动失败",
          },
          {
            name:"停机失败",
          }
        ]
    }
  },
  computed: {
  },
  methods: {
    closeMyself () {
      this.$emit('on-close')
    }
  },
}
</script>
<style scoped>
table{
  width: 100%;
  border-collapse:collapse;
  border-top:1px solid #f2f2f2;
}
table td{
  max-width: 100px;
  height: 30px;
  text-align: center;
  border: 0px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  border-right:1px solid #f2f2f2;
}
table tr{
  height: 30px;
  overflow: hidden;
  border-bottom:1px solid #f2f2f2;
  border-left:1px solid #f2f2f2;
}
.btn-box{
  width:13px;
  height:13px;
  border-radius: 50%;
  background: #13ce66;
  box-shadow: 2px 2px 3px #bfbeb8;
  margin: auto;
}
.btn_active{
  background: #ff4949;
}
</style>
